//
//  MyMediator.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/8.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "MyMediator.h"
#import "User.h"
#import "User1.h"
#import "User2.h"

@interface MyMediator()

@property(nonatomic,strong) User1* user1;
@property(nonatomic,strong) User2* user2;

@end

@implementation MyMediator
@synthesize user1,user2;

-(User *)user1
{
    return user1;
}

-(User *)user2
{
    return user2;
}
-(void)creatMediator
{
    user1 = [[User1 alloc]init];
    user2 = [[User2 alloc]init];
}

-(void)workAll
{
    [user1 work];
    [user2 work];
}

@end
